package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.common.pojo.entity.BaseEmployee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by rzh on 18-5-8.
 */
@Mapper
public interface BaseEmployeeMapper extends BaseMapper<BaseEmployee> {
    List<BaseEmployee> selectByMap(Pagination page, BaseEmployee baseEmployee);

    List<BaseEmployee> exportByMap(BaseEmployee baseEmployee);

    List<BaseEmployee> selectByPar(Pagination page, @Param("par") String par, @Param("par1")Integer par1);

    BaseEmployee selectById(Integer id);

    String getCode();

    List<BaseEmployee> exportBaseEmployeeQueryList(Map map);

    BaseEmployee getEmpByName(@Param("employeeName") String employeeName);

    int updatePasswordById(Map<String,Object> params);
}
